#ifndef PAPER_H
#define PAPER_H
#include "person.h"
#include <QObject>
#include "iostream"
#include "sstream"
#include "vector"
#include <QString>
using namespace std;
using std::ios;
using std::vector;
class paper : public QObject
{
    Q_OBJECT
public:
    explicit paper(QObject *parent = nullptr);
    paper(vector <QString> au,QString tit,QString id,QString ti,QString nm,int pg,bool s=0,bool e=0,bool i=0,bool c=0);
       QString findtitle();
       QString findid();
       QString findtime();                  ///论文时间查询器
       QString findname();
       int findpage();                 ///论文页数查询器
       bool ifsci();                   ///查询是否sci
       bool ifei();                     ///查询是否ei
       bool ifistp();                  ///查询是否为istp
       bool ifhave(QString mes);
       bool ifcorn();                ///查询是否为核心期刊
       bool ifrelation(QString a,QString b);       ///查询两人是否有联系
       void save(ostringstream& os);
       vector <QString> auther;
protected:
    QString title; ///论文名称
    QString ID; ///id
    QString time; ///发表日期
    QString name; ///会议名称
    int page; ///页码
    bool sci; ///是否sci
    bool ei; ///是否ei
    bool istp; ///是否istp
    bool corn; ///是否核心期刊

signals:

};

#endif // PAPER_H
